<?php

namespace app\controllers;


use Yii;
use app\lib\WXBaseController;
use PHPQRCode\QRcode;
class CommonController extends WXBaseController
{

    //common/qr-code-out
    //输出二维码图片
    public function actionQrCodeOut($text='test', $size = 3, $margin = 4)
    {

        QRcode::png($text, false, 'L', $size,$margin);
        exit;
    }
   
}